package com.ljx.funchat.common.constant;

public class RedisKey {

    private static final String BASE_KEY = "funchat:";

    public static final String USERINFO = "userInfo:uid_%d:";

    public static final String USER_TOKEN = "token:uid_%d:";

    public static final String ONLINE_UID_ZET = "onlineUidZet";

    public static final String OFFLINE_UID_ZET = "offlineUidZet";

    public static final String ROOM_INFO_STRING = "roomInfo:id_%d";

    public static final String ROOM_GROUP = "roomGroup:roomId_%d";

    public static final String ROOM_FRIEND = "roomFriend:roomId_%d";

    public static final String REDBAG_CODD = "redbagCode:uid_%d";

    public static final Long REDBAG_CODD_EXPIRE = 5L;

    public static final String REDBAG_LOCK = "redbagLock:%d_%d";

    public static final Integer REDBAG_LOCK_EXPIRE = 1;

    public static final String REDBAG_VALID = "redbagValid:id_%d";

    public static final Long REDBAG_VALID_EXPIRE = 24L;

    public static final String USER_APPLY_LOCK = "userApplyLock:uid_%d";

    public static final Integer USER_APPLY_LOCK_EXPIRE = 1;

    public static final String USER_APPROVE_LOCK = "userApproveLock:uid_%d";

    public static final Integer USER_APPROVE_LOCK_EXPIRE = 1;

    public static final String SENSITIVE_WORD = "sensitiveWord:id_%d";

    public static final String SENSITIVE_WORD_ALL = "sensitiveWordAll";

    public static final Long SENSITIVE_WORD_ALL_EXPIRE = 5L;

    public static final String MSG_CONSUME_AGAIN = "msgConsume:msgId_%d";

    public static final Long MSG_CONSUME_AGAIN_EXPIRE = 1L;





    public static String getKey(String key, Object... objects) {
        return BASE_KEY + String.format(key, objects);
    }

}
